package DesignPattern.Behavior.ChainOfResponsibility;

// 小组长：具体处理者
public class GroupLeader extends Handler {
    public GroupLeader() {
        super(0, Handler.NUM_ONE);
    }

    @Override
    protected void handle(LeaveRequest leaveRequest) {
        System.out.println(leaveRequest.getName() + "请假" + leaveRequest.getNum() + "天，" + leaveRequest.getContent() + "。");
        System.out.println("小组长审批：同意");
    }
}
